import React, { Fragment } from "react";
import index from "./index.css";
export default function SizeList(props) {
  const listItems = props.finalListData.map((item, index) => (
    <div className="listBox" key={index}>
      <li> {item}</li>
    </div>
  ));
  return (
    <Fragment>
      <h2>Sizes:</h2>
      <ul>{listItems}</ul>
    </Fragment>
  );
}
